Integrand size = 27, antiderivative size = 53 \[ \int \frac {\cot ^2(c+d x) \csc (c+d x)}{a+a \sin (c+d x)} \, dx=-\frac {\text {arctanh}(\cos (c+d x))}{2 a d}+\frac {\cot (c+d x)}{a d}-\frac {\cot (c+d x) \csc (c+d x)}{2 a d} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {2918, 3853, 3855, 3852, 8} \[ \int \frac {\cot ^2(c+d x) \csc (c+d x)}{a+a \sin (c+d x)} \, dx=-\frac {\text {arctanh}(\cos (c+d x))}{2 a d}+\frac {\cot (c+d x)}{a d}-\frac {\cot (c+d x) \csc (c+d x)}{2 a d} \]
[In]
[Out]
Rule 8
Rule 2918
Rule 3852
Rule 3853
Rule 3855
Rubi steps \begin{align*} \text {integral}& = -\frac {\int \csc ^2(c+d x) \, dx}{a}+\frac {\int \csc ^3(c+d x) \, dx}{a} \\ & = -\frac {\cot (c+d x) \csc (c+d x)}{2 a d}+\frac {\int \csc (c+d x) \, dx}{2 a}+\frac {\text {Subst}(\int 1 \, dx,x,\cot (c+d x))}{a d} \\ & = -\frac {\text {arctanh}(\cos (c+d x))}{2 a d}+\frac {\cot (c+d x)}{a d}-\frac {\cot (c+d x) \csc (c+d x)}{2 a d} \\ \end{align*}
Time = 0.88 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.77 \[ \int \frac {\cot ^2(c+d x) \csc (c+d x)}{a+a \sin (c+d x)} \, dx=\frac {\left (\csc \left (\frac {1}{2} (c+d x)\right )+\sec \left (\frac {1}{2} (c+d x)\right )\right )^2 \left (-\cos (c+d x)+\left (-\log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )+\log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )\right ) \sin ^2(c+d x)+\sin (2 (c+d x))\right )}{8 a d (1+\sin (c+d x))} \]
[In]
[Out]
Time = 0.19 (sec) , antiderivative size = 68, normalized size of antiderivative = 1.28
method | result | size |
parallelrisch | \(\frac {-\left (\cot ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+4 \cot \left (\frac {d x}{2}+\frac {c}{2}\right )+4 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d a}\) | \(68\) |
derivativedivides | \(\frac {\frac {\left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}-2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {2}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {1}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{4 d a}\) | \(72\) |
default | \(\frac {\frac {\left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}-2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {2}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {1}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{4 d a}\) | \(72\) |
risch | \(\frac {{\mathrm e}^{3 i \left (d x +c \right )}+{\mathrm e}^{i \left (d x +c \right )}+2 i {\mathrm e}^{2 i \left (d x +c \right )}-2 i}{a d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{2}}-\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )}{2 d a}+\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{2 d a}\) | \(95\) |
norman | \(\frac {-\frac {\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )}{d a}-\frac {1}{8 a d}+\frac {3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d a}-\frac {3 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 d a}+\frac {\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d a}}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}+\frac {\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a d}\) | \(128\) |
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.66 \[ \int \frac {\cot ^2(c+d x) \csc (c+d x)}{a+a \sin (c+d x)} \, dx=-\frac {{\left (\cos \left (d x + c\right )^{2} - 1\right )} \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) - {\left (\cos \left (d x + c\right )^{2} - 1\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) + 4 \, \cos \left (d x + c\right ) \sin \left (d x + c\right ) - 2 \, \cos \left (d x + c\right )}{4 \, {\left (a d \cos \left (d x + c\right )^{2} - a d\right )}} \]
[In]
[Out]
\[ \int \frac {\cot ^2(c+d x) \csc (c+d x)}{a+a \sin (c+d x)} \, dx=\frac {\int \frac {\cos ^{2}{\left (c + d x \right )} \csc ^{3}{\left (c + d x \right )}}{\sin {\left (c + d x \right )} + 1}\, dx}{a} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 115 vs. \(2 (49) = 98\).
Time = 0.20 (sec) , antiderivative size = 115, normalized size of antiderivative = 2.17 \[ \int \frac {\cot ^2(c+d x) \csc (c+d x)}{a+a \sin (c+d x)} \, dx=-\frac {\frac {\frac {4 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}}{a} - \frac {4 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} - \frac {{\left (\frac {4 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 1\right )} {\left (\cos \left (d x + c\right ) + 1\right )}^{2}}{a \sin \left (d x + c\right )^{2}}}{8 \, d} \]
[In]
[Out]
none
Time = 0.41 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.77 \[ \int \frac {\cot ^2(c+d x) \csc (c+d x)}{a+a \sin (c+d x)} \, dx=\frac {\frac {4 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a} + \frac {a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 4 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{2}} - \frac {6 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 4 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1}{a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}}}{8 \, d} \]
[In]
[Out]
Time = 9.47 (sec) , antiderivative size = 87, normalized size of antiderivative = 1.64 \[ \int \frac {\cot ^2(c+d x) \csc (c+d x)}{a+a \sin (c+d x)} \, dx=\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{8\,a\,d}+\frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{2\,a\,d}-\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2\,a\,d}+\frac {{\mathrm {cot}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\left (2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-\frac {1}{2}\right )}{4\,a\,d} \]
[In]
[Out]